{% extends "base" %}
{% block title %}{{ object.name }}{% endblock %}
{% block content %}

<p>
	<a href="{% url item_list %}">&laquo;Back to full listing</a>
</p>
<h2>
	{{ object.name }}
</h2>
<p>
	{{ object.description }}
</P>
<h3>Photo</h3>
<table>
	<tr>
		<th>Title</th>
		<th>Thumbnail</th>
		<th>Caption</th>
	</tr>
	{% for photo in object.photo_set.all %}
	<tr>
		<td><i>{{ photo.title}}</i></td>
		<td>
			<a href="{{ photo.get_absolute_url }}" >
				<img src="{{ photo.get_image_thumb_url }}" />
			</a>
		</td>
		<td>{{ photo.caption }}</td>
	</tr>
	{% endfor %}
</table>
{% endblock %}
